﻿<Window x:Class="P2.Cuberry.Modules.Framework.LocalCuberryReport.LocalCuberryReportsDetailsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:viewer="clr-namespace:Microsoft.Reporting.WinForms;assembly=Microsoft.ReportViewer.WinForms"
             xmlns:basec="clr-namespace:P2.Cuberry.Framework.Helper;assembly=P2.Cuberry.Framework.Helper" 
             mc:Ignorable="d"              
            
        Title="Peacequare Cuberry" Width="650" Height="700" 
            Icon="/P2.Cuberry;component/Images/CuberryIcon32.ico"
        Background="{DynamicResource P2BackgroundBrush}"         
        >

    <Window.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Grid.Resources>
            <Image x:Key="RunIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.Framework.LocalCuberryReport;component/Images/Run.png" />
        </Grid.Resources>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition Height="35" />            
            <RowDefinition Height="75" />
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- Row 0 Start -->

        <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Content="{Translate DialogHeaderLocalCuberryReportsDetails}" Style="{StaticResource P2DetailViewHeaderTextStyle}" />

        <Separator Margin="0,0,0,0" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Bottom" Height="0"/>
        <!-- Row 0 End -->

        <!-- Row 1: Menu Start -->
        <Border  Grid.Row="1" Grid.Column="0"  Style="{StaticResource P2MenuBorderStyle}">
            <Menu Grid.Row="1" x:Name="menuMain" Style="{StaticResource P2MenuStyle}" >
                <MenuItem x:Name="ReportRunBtn" Margin="2,1,0,2"  InputGestureText="Ctrl+R" Header="{Translate ReportRunBtn}" Command="{Binding ReportRunCommand}" Icon="{StaticResource RunIcon}" Style="{StaticResource P2MenuItemStyle}" Click="ReportRunBtn_Click" />
            </Menu>
        </Border>
        <!-- Row 1 End -->

        <!-- Row 2: All Fields -->

        <Border Grid.Row="2" Grid.Column="0" Style="{StaticResource P2ContentBorderStyle}" >
            <Grid Grid.Row="2" Grid.Column="0" Name="FindGrid" >
                
            </Grid>
        </Border>

        <!-- Row 2: End -->


        <!-- Row 3: Bottom: Status Bar Start -->
        <Border  Grid.Row="3" Grid.Column="0"  Style="{StaticResource P2ContentBorderStyle}">
            <Grid Grid.Row="3" Grid.Column="0">
                <WindowsFormsHost Margin="3" Name="windowsFormsHost1">
                    <viewer:ReportViewer x:Name="reportViewer1" Anchor="Top" Dock="Fill">
                        
                    </viewer:ReportViewer>
                </WindowsFormsHost>

            </Grid>
        </Border>
        <!-- Row 3: End -->
        
    </Grid>
</Window>
